<%@page pageEncoding="UTF-8"%>
<%@ include file="../WEB-INF/jspf/cabecalho.jspf" %>
<%@ include file="../WEB-INF/jspf/acesso.jspf" %>
<%@ include file="../WEB-INF/jspf/setMeta.jspf" %>

<sql:query var='rsetPrestador' dataSource='${con}'>    
    SELECT * FROM Prestador
    ORDER BY `nome` ASC 
</sql:query>


<form name="form1" method="post" action="">
  <fieldset>
  <legend><font color="#0000FF"><strong>Prestadores Cadastrados</strong></font></legend>
  <br/>
  <table width="20%" border="0">
     <tr bgcolor="#CCCCCC">
          <td width="10%"><div align="center"><strong><a href="visualizarPrestadoresCadastrados.jsp">Prestadores</a></strong></div></td>
          <td width="10%"><div align="center"><strong><a href="visualizarTerceirosCadastrados.jsp">Terceiros</a></strong></div></td>
      </tr>
    </table>
   <br/>
  <table width="100%" border="1" bordercolor="#0000FF">
      <tr bgcolor="#CCCCCC">
          <td><strong>Prestadores de Serviços</strong></td>
      </tr>
    <tr bgcolor="#00CCFF"> 
      <td width="30%" bgcolor="#00CCFF"> <div align="center"><strong>Raz&atilde;o 
          Social </strong></div></td>
      <td width="12%"><div align="center"><strong>CNPJ</strong></div></td>
      <td width="8%"><div align="center"><strong>Telefone</strong></div></td>
      <td width="10%"><div align="center"><strong>Fone-Fax</strong></div></td>
      <td width="18%"><div align="center"><strong>Email</strong></div></td>
      <td width="18%"><div align="center"><strong>Contato</strong></div></td>
      <td width="6%"><div align="center"><strong>Status</strong></div></td>
      <td width="5%" colspan="3"><div align="center"><strong>Manuten&ccedil;&atilde;o</strong></div></td>
    </tr>    
    <c:forEach var="row" items="${rsetPrestador.rowsByIndex}">
        <tr>
            <td><div align="left"></div>${row[1]}</td>
            <td><div align="left"></div>${row[2]}</td>
            <td><div align="left"></div>${row[3]}</td>
            <td><div align="left"></div>${row[4]}</td>
            <td><div align="left"></div>${row[5]}</td>
            <td><div align="left"></div>${row[6]}</td>
            <td><div align="left"></div>${row[7]}</td>
            <td><div align="center"><a href="visualizarDadosDePrestadorDeServicos.jsp?chv1=${row[0]}"><img src="imagens/icones/visualizar.gif" alt="Visualizar a solicita&ccedil;&atilde;o" width="16" height="16" border="0" /></a></div></td>
            <td><a href="editarDadosDePrestadorDeServicos.jsp?chv1=${row[0]}"><img src="imagens/icones/editar.gif" width="16" height="16" border="0" /></a></td>
            <td><div align="center"><img src="imagens/icones/historico.gif" onclick="javascript:window.open('visualizarHistoricoDePrestador.jsp?chv1=${row[0]}','teste','height=500,width=600,scrollbars=yes,status=yes,left = 300,top=100')" style="cursor:hand" width="16" height="16" border="0" /></a></div></td>
        </tr>
    </c:forEach>
  </table>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  </fieldset>
</form>

</body>
</html>
